package com.sina.shop.service.business;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.business.Business;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-02-06-9:59
 */
public interface BusinessService extends BaseService {

    //根据用户id得到商店
    List<Business> getBusinessByAdminId(Long adminId);

    List<Business> getBusinessList(Business business, Long[] count);

    //根据id标记性删除商店
    Integer deleteBusinessTab(Long id) throws DataException, UpdateException;

    //保存商店
    Business saveBusiness(Business business) throws CreateException, ResourceExistsException, DataException;

    //更新商店
    Business updateBusiness(Business business) throws UpdateException, DataException;

}
